<?php

declare(strict_types=1);

namespace app\supplier\command;
use app\supplier\shophttp\Product;
use think\console\Command;
use think\console\Input;
use think\console\Output;

class apitesst extends Command
{
    protected $output;

    protected $input;
    protected $driver;
    protected $windows = [];
    protected $cookies = [];
    protected function configure()
    {
        // 指令配置
        $this->setName('apitesst')
            ->setDescription('测试命令：apitesst');
    }

    protected function execute(Input $input, Output $output)
    {
        // 指令输出
        $this->input = $input;

        $this->output = $output;

        $appid = 'outmanager';
        $appsecret = 'WHcAEPjP36fRzni3';
        try {
  
            $response = Product::getInstance($appid,$appsecret)->Lists();
            dump($response);
        } catch (\Throwable $th) {
            //throw $th;
            dump($th->getMessage());
            dump($th->getTraceAsString());
        }
   
    }

}
